package com.sysolve.betterCity.model;

/**
 * @author ray
 * @hibernate.class table="place"
 */
public class Place {
	
	public int id;
	
	public String place;
	public String memo;
	
	public int lat;
	public int lng;
	
	public String country;
	public String region;
	public String streetAddress;
	
	public int isPublic;
	public int isShownToFriends;
	public Person owner;
	
	/**
	 * @return
	 * @hibernate.property column="country"
	 */
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	/**
	 * @return
	 * @hibernate.id generator-class="native" column="id"
	 */
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return
	 * @hibernate.property column="is_public"
	 */
	public int getIsPublic() {
		return isPublic;
	}
	public void setIsPublic(int isPublic) {
		this.isPublic = isPublic;
	}
	/**
	 * @return
	 * @hibernate.property column="is_shown_to_friends"
	 */
	public int getIsShownToFriends() {
		return isShownToFriends;
	}
	public void setIsShownToFriends(int isShownToFriends) {
		this.isShownToFriends = isShownToFriends;
	}
	/**
	 * @return
	 * @hibernate.property column="lat"
	 */
	public int getLat() {
		return lat;
	}
	public void setLat(int lat) {
		this.lat = lat;
	}
	/**
	 * @return
	 * @hibernate.property column="lng"
	 */
	public int getLng() {
		return lng;
	}
	public void setLng(int lng) {
		this.lng = lng;
	}
	/**
	 * @return
	 * @hibernate.property column="memo"
	 */
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	/**
	 * @return
	 * @hibernate.many-to-one column="owner"
	 */
	public Person getOwner() {
		return owner;
	}
	public void setOwner(Person owner) {
		this.owner = owner;
	}
	/**
	 * @return
	 * @hibernate.property column="place"
	 */
	public String getPlace() {
		return place;
	}
	public void setPlace(String place) {
		this.place = place;
	}
	/**
	 * @return
	 * @hibernate.property column="region"
	 */
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	/**
	 * @return
	 * @hibernate.property column="street_address"
	 */
	public String getStreetAddress() {
		return streetAddress;
	}
	public void setStreetAddress(String streetAddress) {
		this.streetAddress = streetAddress;
	}
	public Place() {
		super();
	}
	public Place(int lat, int lng) {
		super();
		this.lat = lat;
		this.lng = lng;
	}
	
}
